package com.wl.java_spring_boot01.modules.test.service;

import com.wl.java_spring_boot01.modules.common.vo.Result;
import com.wl.java_spring_boot01.modules.common.vo.SearchVo;
import com.wl.java_spring_boot01.modules.test.entity.Student;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author 汪林
 * @date 2020/8/13 8:38
 */
public interface StudentService {

    //增加
    Result<Student> insertStudent(Student student );

    //id查找
    Result<Student> findStudentById(Integer studentId);

    //分页查询
    public Page<Student> getStudentsBySearchVo(SearchVo searchVo);

    List<Student> getStudents();

    List<Student> getStudentsByStudentName(String studentName, int cardId);
}
